/ Assembly List / LJCNetCommon / HTMLBuilder / AddLine

Namespace - LJCNetCommon


Parameters
text - The add text.

Returns

The added text line.

Syntax

C#
public String AddLine(String text = null)

Adds a text line without modification.

Remarks

AddLine() is an "Append" method. It adds the unmodified text line to the builder.

Example

C#
// Defaults: IndentCharCount = 2, LineLimit = 80, WrapEnabled = false.
var hb = new HTMLBuilder();

// Example Method:
// Adds text that ends with a newline.
hb.AddLine("This is an appended line.");

hb.AddText(":");
var result = hb.ToString();

// result:
// This is an appended line.
// :

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.